﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Validations.ProjectValidation
{
    public class SprintValidation
    {
        public static bool ValidateSprintByProject(DateTime dataInicioSprint, DateTime dataFimSprint, DateTime dataInicioProjeto, DateTime dataFimProjeto)
        {
            if (dataInicioSprint < dataInicioProjeto || dataFimSprint > dataFimProjeto)
                return false;
            else
                return true;
        }

        public static bool ValidateSprintByRelease(DateTime dataInicioSprint, DateTime dataFimSprint, DateTime dataInicioRelease, DateTime dataFimRelease)
        {
            if (dataInicioSprint < dataInicioRelease || dataFimSprint > dataFimRelease)
                return false;
            else
                return true;
        }
    }
}
